import request from '@/utils/request'

// 查询工序参数列表
export function listParameters(query) {
  return request({
    url: '/base-data-service/base/parameters/list',
    method: 'get',
    params: query
  })
}

// 查询工序参数详细
export function getParameters(paramId) {
  return request({
    url: '/base-data-service/base/parameters/' + paramId,
    method: 'get'
  })
}

// 新增工序参数
export function addParameters(data) {
  return request({
    url: '/base-data-service/base/parameters',
    method: 'post',
    data: data
  })
}

// 修改工序参数
export function updateParameters(data) {
  return request({
    url: '/base-data-service/base/parameters',
    method: 'put',
    data: data
  })
}

// 删除工序参数
export function delParameters(paramId) {
  return request({
    url: '/base-data-service/base/parameters/' + paramId,
    method: 'delete'
  })
}
